win32: Send initial configure
authorAlexander Larsson <alexl@redhat.com>
Tue, 25 Oct 2011 14:39:42 +0000 (16:39 +0200)
committerAlexander Larsson <alexl@redhat.com>
Thu, 10 Nov 2011 16:41:00 +0000 (17:41 +0100)
We need to send a configure event when a window is shown.

gdk/win32/gdkevents-win32.c

index 3777910b06c6f8a3d728f165c2c28eb0d59f3645..47e248f13f426468952b2c311a564fb55341b725 100644 (file)
@@ -2738,9 +2738,10 @@ gdk_event_translate (MSG  *msg,
          _gdk_win32_append_event (event);
        }
 
-      /* New size or position => configure event */
+      /* Show, New size or position => configure event */
       if (!(windowpos->flags & SWP_NOCLIENTMOVE) ||
-         !(windowpos->flags & SWP_NOCLIENTSIZE))
+         !(windowpos->flags & SWP_NOCLIENTSIZE) ||
+         (windowpos->flags & SWP_SHOWWINDOW))
        {
          if (GDK_WINDOW_TYPE (window) != GDK_WINDOW_CHILD &&
              !IsIconic (msg->hwnd) &&